package com.actor.develop_helper.adapter;

import androidx.annotation.NonNull;

import com.actor.develop_helper.R;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.esotericsoftware.spine.Animation;

/**
 * description: 骨骼动画 底部动画名称列表
 * company    :
 *
 * @author : ldf
 * date       : 2025/1/24 on 14
 * @version 1.0
 */
public class SpineSkeletalAdapter extends BaseQuickAdapter<Animation, BaseViewHolder> {

    public SpineSkeletalAdapter() {
        super(R.layout.item_spine_skeletal);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder holder, Animation item) {
        holder.setText(R.id.tv, item.getName() + ":" + item.getDuration() + "秒");
    }
}
